//
//  QryAllArtInfoRequest.m
//  EasyToo
//
//  Created by zhengzhe on 13-8-25.
//
//

#import "QryAllArtInfoRequest.h"

@implementation QryAllArtInfoRequest

- (id)initQryAllSiteInfo:(id<ServerCommunicationDelegate>)delegate
{
    self = [super init];
    if (self) {
        self.requestName = @"QryAllArtInfoResponse";
        self.delegate = delegate;
        
        NSString* date;
        NSDateFormatter* formatter = [[NSDateFormatter alloc]init];
        [formatter setDateFormat:@"YYYYMMddhhmmss"];
        date = [formatter stringFromDate:[NSDate date]];
        
        [self.bodyJsonDict setObject:@"v1.0" forKey:@"version"];
        [self.bodyJsonDict setObject:@"QueryPerform" forKey:@"_action"];
        [self.bodyJsonDict setObject:@"1" forKey:@"classid"];
        [self.bodyJsonDict setObject:date forKey:@"criterion_tmark"];
        [self.bodyJsonDict setObject:@"" forKey:@"criterion_out"];
        [self.bodyJsonDict setObject:@"004001" forKey:@"TranCode"];
        [self.bodyJsonDict setObject:@"0" forKey:@"areaid"];
        
        [self.headerJsonDict setObject:@"004001" forKey:@"TranCode"];
        [self buildJsonRequest];
    }
    return self;
}


@end
